package top.continew.admin.generator.model.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.continew.admin.common.model.resp.BaseResp;

import java.io.Serial;
import java.io.Serializable;

/**
 * 待办事项附件信息
 *
 * @author kellen
 * @since 2025/07/30
 */
@Data
@Schema(description = "待办事项附件信息")
public class TaskTodoUploadResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(description = "ID", example = "1")
    private Long id;

    /**
     * 待办事项id
     */
    @Schema(description = "待办事项id", example = "1")
    private Long taskTodoId;

    /**
     * 归属：0-发布者，1-处理者
     */
    @Schema(description = "归属", example = "0")
    private Integer belongTo;

    /**
     * 文件链接
     */
    @Schema(description = "文件链接", example = "http://example.com/file.pdf")
    private String uploadUrl;

    /**
     * 文件名
     */
    @Schema(description = "文件名", example = "document.pdf")
    private String fileName;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2023-08-08 08:08:08", type = "string")
    private java.time.LocalDateTime createTime;

    /**
     * 是否为图片
     */
    @Schema(description = "是否为图片", example = "true")
    private Boolean isImage;
}